﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UI;
using DG.Tweening;
public class Button3 : BasePanel
{
    private CanvasGroup canvasGroup;
    // Use this for initialization
    void Awake() {
        canvasGroup = GetComponent<CanvasGroup>();

    }
    public override void OnEnter()
    {
        canvasGroup.blocksRaycasts = true;
        canvasGroup.DOFade(1, 0.6f);
        gameObject.SetActive(true);
    }
    public override void OnExit()
    {
        canvasGroup.blocksRaycasts = false;
        canvasGroup.DOFade(0, 0.6f);
        gameObject.SetActive(false);
    }
	
	// Update is called once per frame
	void Update () {
		
	}
}
